/*
 * jinlanbao
 */
package com.jlb.zx.dao;

import com.jlb.core.base.BaseDAO;
import com.jlb.zx.entity.ZxMember;
import com.jlb.zx.entity.ZxMemberState;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author jinlanbao
 */
@Mapper
@Repository
public interface ZxMemberDAO extends BaseDAO<ZxMember, Long> {


    /**
     * 查询ZxMember列表
     *
     * @param rowBounds 分页参数
     * @return List<ZxMember>
     */
    List<ZxMember> list(RowBounds rowBounds);


    /**
     * 查询ZxMember分页 根据状态
     *
     * @return List<ZxMember>
     */
    List<ZxMember> listByPk(ZxMemberState state, RowBounds rowBounds);

    int countByPk(ZxMemberState state);

    List<ZxMember> listForCreateSql();

    ZxMember loadByUid(String uuid);

    ZxMember loadBonus(Map<String, Object> params);
}
